Drop unused gtk_buildable_set_buildable_property
authorMatthias Clasen <mclasen@redhat.com>
Fri, 30 Oct 2020 21:19:52 +0000 (17:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Oct 2020 21:19:52 +0000 (17:19 -0400)
gtk/gtkbuildable.c
gtk/gtkbuildableprivate.h

index 659a0ff3bd9b3f110011b5909bc0289285a35bc9..2adc747d4429d49c32b19e14016f15861b51e5b2 100644 (file)
@@ -130,35 +130,6 @@ gtk_buildable_add_child (GtkBuildable *buildable,
   (* iface->add_child) (buildable, builder, child, type);
 }
 
-/*< private >
- * gtk_buildable_set_buildable_property:
- * @buildable: a #GtkBuildable
- * @builder: a #GtkBuilder
- * @name: name of property
- * @value: value of property
- *
- * Sets the property name @name to @value on the @buildable object.
- */
-void
-gtk_buildable_set_buildable_property (GtkBuildable *buildable,
-                                     GtkBuilder   *builder,
-                                     const char   *name,
-                                     const GValue *value)
-{
-  GtkBuildableIface *iface;
-
-  g_return_if_fail (GTK_IS_BUILDABLE (buildable));
-  g_return_if_fail (GTK_IS_BUILDER (builder));
-  g_return_if_fail (name != NULL);
-  g_return_if_fail (value != NULL);
-
-  iface = GTK_BUILDABLE_GET_IFACE (buildable);
-  if (iface->set_buildable_property)
-    (* iface->set_buildable_property) (buildable, builder, name, value);
-  else
-    g_object_set_property (G_OBJECT (buildable), name, value);
-}
-
 /*< private >
  * gtk_buildable_parser_finished:
  * @buildable: a #GtkBuildable
index 305be218980649c0ff92d65afe22935a65e68d39..90d447a99595e0d87c0cb8b951e15380145eaceb 100644 (file)
@@ -11,10 +11,6 @@ void      gtk_buildable_add_child              (GtkBuildable        *buildable,
                                                 GtkBuilder          *builder,
                                                 GObject             *child,
                                                 const char          *type);
-void      gtk_buildable_set_buildable_property (GtkBuildable        *buildable,
-                                                GtkBuilder          *builder,
-                                                const char          *name,
-                                                const GValue        *value);
 GObject * gtk_buildable_construct_child        (GtkBuildable        *buildable,
                                                 GtkBuilder          *builder,
                                                 const char          *name);